package cn.terminus.client.customer.contractsellclauseinfo.service;

import cn.terminus.client.customer.contractsellclauseinfo.param.ContractSellClauseInfoNewParam;
import cn.terminus.client.customer.contractsellclauseinfo.param.ContractSellClauseInfoEditParam;
import cn.terminus.client.customer.contractsellclauseinfo.param.ContractSellClauseInfoQueryParam;
import cn.terminus.client.customer.contractsellclauseinfo.param.ContractSellClauseInfoDeleteParam;
import cn.terminus.client.customer.contractsellclauseinfo.param.ContractSellClauseInfoGetsParam;
import cn.terminus.client.customer.contractsellclauseinfo.result.ContractSellClauseInfoResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * 合同售卖条款信息(ContractSellClauseInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-21 11:17:36
 */
public interface ContractSellClauseInfoService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(ContractSellClauseInfoNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(ContractSellClauseInfoEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractSellClauseInfoResult>> gets(ContractSellClauseInfoGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(ContractSellClauseInfoDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractSellClauseInfoResult>> query(ContractSellClauseInfoQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<ContractSellClauseInfoResult>> page(ContractSellClauseInfoQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
